<template>
    <el-input type="textarea" v-model="showData" placeholder="在这里输入多行文本" :rows="6" clearable />
</template>

<script lang="ts" setup>
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
//用于接收路由跳转携带的参数
const route = useRoute();
const showData = ref("这是w3初始显示数据")
//接收来自w1的参数
onMounted(() => {
    const getW1Params2 = route.query;
    console.log("query接收来自w1的参数2", getW1Params2.id)
    if (getW1Params2.id) {
        showData.value = getW1Params2.id
    }

})
</script>
